package com.etc.test1;

import javax.annotation.Resource;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Controller;
import org.springframework.stereotype.Repository;

//@Controller
// Bean一下
// <bean id="bookController" class="com.etc.test1.BookController"></bean>
@Component
public class BookController {
    // 属性注入进来
    // <property name="service" ref="bookService">
    @Autowired
    IBookService service;
}
